﻿<%@ Page Title="" Language="C#" MasterPageFile="~/studentUser/Student.Master" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="WebApplication1.studentUser.index" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style4 {
            position: relative;
            width: 50%;
            height: 59%;
            float: right;
            left: -100px;
            top: -600px;
        }
        .auto-style5 {
            position: relative;
            top: 30px;
            left: 0px;
        }
    </style>
    <script>
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <div style="border-radius: 15px;
                    background-color: #fff;
                    margin-top:30px;
                    margin-left: 100px;" class="auto-style5">
            <asp:GridView ID="GridView1"  runat="server" AutoGenerateColumns="False" Width="90%" CellPadding="30" BackColor="#595453" BorderColor="#595453" BorderStyle="Solid" BorderWidth="3px" CellSpacing="10" DataSourceID="SqlDataSource1" ForeColor="#595453">
                <Columns>
                    <asp:BoundField DataField="name" HeaderText="姓名" SortExpression="name" />
                    <asp:BoundField DataField="no" HeaderText="学号" SortExpression="no" />
                    <asp:BoundField DataField="class_name" HeaderText="班级" SortExpression="class_name" />
                    <asp:BoundField DataField="dormitory_number" HeaderText="宿舍" SortExpression="dormitory_number" />
                </Columns>
                <FooterStyle BackColor="#CCCCCC" />
                <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Left" />
                <RowStyle BackColor="White" />
                <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                <SortedAscendingCellStyle BackColor="#F1F1F1" />
                <SortedAscendingHeaderStyle BackColor="#808080" />
                <SortedDescendingCellStyle BackColor="#CAC9C9" />
                <SortedDescendingHeaderStyle BackColor="#383838" />
            </asp:GridView>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:dmsConnectionString %>" ProviderName="<%$ ConnectionStrings:dmsConnectionString.ProviderName %>" SelectCommand="SELECT student.name,student.no,student.class_name,dormitory.dormitory_number FROM `student`,dormitory where student.dormitory_id = dormitory.id"></asp:SqlDataSource>
         </div>

         <div style="border-radius: 15px;
                    background-color: #fff;
                    position: relative;
                    width: 440px;
                    height:390px;
                    margin-top:50px;
                    margin-left: 100px;
                    box-shadow: 0px 1px 3px 0px rgba(119,119,119,0.99);">
             <div style=" position: relative; margin-left:5px;top:10px;height:380px">
                 <asp:Calendar ID="calDate" runat="server" Height="380px" Width="430px" BorderStyle="None"></asp:Calendar>
             </div> 
         </div>
     
     <div style="border-radius: 15px;
                    background-color: #fff;
                    margin-top:210px;
                    margin-left: 250px;
                    left:-135px;
                    overflow:auto;
                    box-shadow: 0px 1px 3px 0px rgba(119,119,119,0.99);" class="auto-style4">
    <!-- mainContent S -->
    <div style="margin-left:15px;margin-right:15px;">
        <div class="mainBox">
            <div class="mHd">
                <h3><span style="margin-left:15px">通知公告</span></h3>
            </div>
            <div class="mBd">
                <asp:ListView  ID="ListView1" runat="server" DataSourceID="notice">
                                <AlternatingItemTemplate >
                                    <asp:LinkButton ID="LinkButton1" style="text-decoration:none;color:black" runat="server"  CommandArgument='<%# Eval("publishDate") %>' OnClick="LinkButton1_Click1">
                                    <li style="">
                                        <asp:Label ID="titleLabel"  runat="server" Text='<%# Eval("title") %>' />
                                        <asp:Label ID="publishDateLabel" runat="server" style="float:right" Text='<%# Eval("publishDate") %>' />
                                        <br />
                                    </li>
                                    </asp:LinkButton></AlternatingItemTemplate><EmptyDataTemplate>
                                    未返回数据。</EmptyDataTemplate><ItemSeparatorTemplate>
<br />
                                </ItemSeparatorTemplate>
                                <ItemTemplate>
                                     <asp:LinkButton ID="LinkButton2" style="text-decoration:none;color:black" runat="server"  CommandArgument='<%# Eval("publishDate") %>' OnClick="LinkButton1_Click1">
                                    <li style="">
                                        <asp:Label ID="titleLabel" runat="server" Text='<%# Eval("title") %>' />
                                        <asp:Label ID="publishDateLabel" style="float:right" runat="server" Text='<%# Eval("publishDate") %>' />
                                        <br />
                                    </li>
                                         </asp:LinkButton>
                                </ItemTemplate>
                                <LayoutTemplate>
                                    <ul id="itemPlaceholderContainer" runat="server" style="">
                                        <li runat="server" id="itemPlaceholder" />
                                    </ul>
                                </LayoutTemplate>
                                <SelectedItemTemplate>
                                   <li style="">
                                           <asp:Label ID="titleLabel" runat="server" Text='<%# Eval("title") %>' /> 
                                           <asp:Label ID="publishDateLabel" runat="server" Text='<%# Eval("publishDate") %>' />
                                        <br />
                                    </li>
                                </SelectedItemTemplate>
                            </asp:ListView>
                <asp:SqlDataSource ID="notice" runat="server" ConnectionString="<%$ ConnectionStrings:dmsConnectionString %>" ProviderName="<%$ ConnectionStrings:dmsConnectionString.ProviderName %>" SelectCommand="SELECT title,publishDate FROM `notice`"></asp:SqlDataSource>
            </div>
                    </div>
             </div> 
        </div>
</asp:Content>
